package com.zjh.admin.app.service.impl;

import com.zjh.admin.app.mapper.AppUserMapper;
import com.zjh.admin.app.model.AppUserEntity;
import com.zjh.admin.app.service.AppUserService;
import com.zjh.core.base.baseservice.impl.AbstractService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author WYX
 * @Description TODO
 * @Date 2019/11/17 18:18
 */
@Service("appUserService")
public class AppUserServiceImpl extends AbstractService<AppUserEntity,Long> implements AppUserService {
    @Autowired
    private AppUserMapper appUserMapper;

    @Autowired
    public void setBaseMapper() {
        super.setBaseMapper(appUserMapper);
    }

    @Override
    public int updateLockStatus(Long id) {
        return appUserMapper.updateLockStatus(id);
    }

    @Override
    public AppUserEntity findByAccountName(AppUserEntity appUserEntity) {
        return appUserMapper.findByAccountName(appUserEntity);
    }
}
